<template>
  <div class="container">
    <div v-for="(item, index) in list" :key="index">
      <div>{{ item.field_name }}</div>
      <div>
        <div class="val1">
          <span>{{ item.field_value }}</span
          >万元
        </div>
        <div class="val2">
          <img src="./imgs/up.png" alt="" />
          {{ item.growth_value }}
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import { postAction, getAction } from '@/api/manage'
export default {
  name: 'rRow3',
  data() {
    return {
      list: []
    }
  },
  async created() {
    const res = await postAction('/topic/data/listAllData/dy_dp_cycx_szjjcy_gk', {})
    this.list = res.result.data
  }
}
</script>

<style lang="scss" scoped>
.container {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  place-items: center;
  font-family: MicrosoftYaHei;
  font-size: 18px;
  color: #ffffff;
  font-style: normal;
  text-transform: none;
  & > div {
    width: 127px;
    height: 86px;
    background: url('./imgs/r-8.png') no-repeat center center / 100% 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    & > div {
      width: 150%;
      text-align: center;
      margin-top: -50px;
    }
    & > div:nth-child(2) {
      display: flex;
      align-items: center;
      margin-top: -5px;
      img {
        width: 12px;
        height: 16px;
        margin-right: -6px;
      }
    }
  }

  .val1 {
    font-size: 14px;
    span {
      font-family: YouSheBiaoTiHei;
      font-size: 24px;
      color: #19fdf5;
      font-style: normal;
      text-transform: none;
    }
  }
  .val2 {
    font-family: YouSheBiaoTiHei;
    font-size: 24px;
    color: hsla(0, 100%, 62%, 1);
    font-style: normal;
    text-transform: none;
    margin-left: 10px;
  }
}
</style>
